x = int(input())
print('%.4f'%{-10:-0.8391,5:12.4512,25:-1.0000,31:31.0031}[x])